extends ./common/common

block layout
  body.login-page
    .login-box
      .login-logo
        a(href='/')
          b WIKI
          if title == '初始化'
            | 设置管理员
          else
            | 用户中心
      .login-box-body
        p.login-box-msg 请输入相关信息完成注册
        form#register
          .form-group.has-feedback
            input.form-control(type='text',name='name',placeholder='姓名')
            span.glyphicon.glyphicon-user.form-control-feedback
          .form-group.has-feedback
            input.form-control(type='email',name='email',placeholder='邮箱')
            span.glyphicon.glyphicon-envelope.form-control-feedback
          .form-group.has-feedback
            input.form-control(type='password',name='password',placeholder='密码')
            span.glyphicon.glyphicon-lock.form-control-feedback
          .form-group.has-feedback
            input.form-control(type='password',name='repassword',placeholder='再次输入密码')
            span.glyphicon.glyphicon-log-in.form-control-feedback
          if title != '初始化'
            select.form-control(name='role')
              option(value='-1') 请选择用户角色
              option(value='0') 开发人员
              option(value='1') 产品经理
              option(value='2') 测试人员
              option(value='3') 项目管理
          .form-group.has-feedback#tip
          .form-group.has-feedback
            button.btn.btn-primary.btn-block.btn-flat(type='button',name='submit')  注 册
          if title != '初始化'
            .row
              .col-xs-12
                a(href='/users/login').pull-right
                 i.glyphicon.glyphicon-retweet
                 |  返回登陆
